package org.fhm.zdte.server.service;

import org.fhm.substrate.annotation.Component;
import org.fhm.zdte.common.pojo.Address;
import org.fhm.zdte.common.service.channel.AbstractChannelDispatcher;
import org.fhm.zdte.common.standard.IChannelManager;

/**
 * The common channel dispatcher.
 *
 * @author 谭波
 * @since 2024/4/7
 */
@Component
public class ServerChannelDispatcher extends AbstractChannelDispatcher {

    @Override
    public IChannelManager obtainChannelManager(Address address) {
        return iChannelManagerMap.values().iterator().next();
    }
}
